import axios from 'axios';
// 删除指定id的公告
let remove = (data) => axios.post('/notice/remove', data);
// 添加新的公告
let release = (data) => axios.post('/notice/release', data);
// 编辑指定id公告
let edit = (data) => axios.post('/notice/edit', data);
// 置顶/取消置顶公告
let stick = (data) => axios.post('/notice/stick', data);
// 获取所有公告列表
let list = (params) => axios.get('/notice/list', { params });
// 获取指定id的公告详情
let detail = (params) => axios.get('/notice/detail', { params });
export default {
	remove,
	release,
	edit,
	stick,
	list,
	detail
}
